/*
 * Copyright 2017 Baiyyy
 * @(#)TSHumiture.java
 */

package com.byyy.ccts.modules.cc.entity.ccts;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.byyy.ccts.core.common.entity.AbstractEntity;
import com.byyy.ccts.core.utils.excel.annotation.Excel;
import com.byyy.ccts.core.utils.pdf.annotation.PDFColumn;
import com.byyy.ccts.core.utils.pdf.annotation.PDFTitle;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.sql.Timestamp;

/**
 * 温湿度信息
 * Created by DELL on 2018-5-7.
 */
@TableName("T_S_HUMITURE")
@PDFTitle(value = "采集设备温度数据")
public class TSHumiture extends AbstractEntity<String> {

    /** 设备ID */
    @PDFColumn(name = "设备编号", order = 1, width = 60)
    @Excel(exportName = "设备编号", orderNum = "1", exportFieldWidth = 15)
    @TableField("DEVICE_SN")
    private String deviceSn;

    /** 温度采集时间 */
    @PDFColumn(name = "温度采集时间", order = 1, width = 100, format = "yyyy-MM-dd HH:mm:ss")
    @Excel(exportName = "温度采集时间", orderNum = "2", exportFieldWidth = 20, imExFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField("COLLECT_TIME")
    @JSONField(format ="yyyy-MM-dd HH:mm:ss")
    private Timestamp collectTime;

    /** 温度值 */
    @PDFColumn(name = "温度值", order = 3)
    @Excel(exportName = "温度值", orderNum = "3", exportFieldWidth = 15)
    @TableField("TEMPERATURE")
    private float temperature;

    /** 信号量 */
    @PDFColumn(name = "信号量", order = 4)
    @Excel(exportName = "信号量", orderNum = "4", exportFieldWidth = 15)
    @TableField("SEMAPHORE")
    private int semaphore;

    /** 电量 */
    @PDFColumn(name = "电量", order = 5)
    @Excel(exportName = "电量", orderNum = "5", exportFieldWidth = 15)
    @TableField("ELECTRIC")
    private int electric;

    /** 湿度值 */
    @TableField("HUMIDITY")
    private int humidity;

    /** 基站小区号 */
    @TableField("CELLID")
    private int cellId;

    /** 基站位置号 */
    @TableField("LAC")
    private int lac;

    /** 设备编码 */
    @TableField(exist = false)
    @PDFColumn(name = "测点名称", order = 0)
    @Excel(exportName = "测点名称", orderNum = "0", exportFieldWidth = 15)
    private String sbNo;

    /** 设备状态 */
    @TableField(exist = false)
    private String working;
    /** 设备上报间隔 */
    @TableField(exist = false)
    private int minute;

    public String getDeviceSn() {
        return deviceSn;
    }

    public void setDeviceSn(String deviceSn) {
        this.deviceSn = deviceSn;
    }

    public Timestamp getCollectTime() {
        return collectTime;
    }

    public void setCollectTime(Timestamp collectTime) {
        this.collectTime = collectTime;
    }

    public float getTemperature() {
        return temperature;
    }

    public void setTemperature(float temperature) {
        this.temperature = temperature;
    }

    public int getSemaphore() {
        return semaphore;
    }

    public void setSemaphore(int semaphore) {
        this.semaphore = semaphore;
    }

    public int getElectric() {
        return electric;
    }

    public void setElectric(int electric) {
        this.electric = electric;
    }

    public int getHumidity() {
        return humidity;
    }

    public void setHumidity(int humidity) {
        this.humidity = humidity;
    }

    public int getCellId() {
        return cellId;
    }

    public void setCellId(int cellId) {
        this.cellId = cellId;
    }

    public int getLac() {
        return lac;
    }

    public void setLac(int lac) {
        this.lac = lac;
    }

    public String getSbNo() {
        return sbNo;
    }

    public void setSbNo(String sbNo) {
        this.sbNo = sbNo;
    }

    public String getWorking() {
        return working;
    }

    public void setWorking(String working) {
        this.working = working;
    }

    public int getMinute() {
        return minute;
    }

    public void setMinute(int minute) {
        this.minute = minute;
    }

    @Override
    public String getId() {
        return null;
    }

    @Override
    public void setId(String s) {

    }
}
